x86/MSI: drop bogus NULL check from pci_restore_msi_state()
authorJan Beulich <jbeulich@suse.com>
Thu, 23 Jul 2015 12:03:41 +0000 (14:03 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 23 Jul 2015 12:03:41 +0000 (14:03 +0200)
commit10f086ecbb2a4f9749e22412020e964a19c1b7fd
treeb33d0e00d8d78b68453c010369a77ca6cd93fb5a
parent742ab6ac1976ad6e3ec9f9d49fbf74aff27e6eb4
x86/MSI: drop bogus NULL check from pci_restore_msi_state()

Commit 372900faf8 ("x86/MSI-X: reduce fiddling with control register
during restore") introduced de-references of pdev before it gets
checked against NULL. Instead of deferring the de-references, drop
the pointless check - both call sites do that check already.

Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/msi.c